package com.lambda.demo1.anonymity;

/**
 * @ClassName Test
 * @Description TODO
 * @Author Kx
 * @Date 2025/4/1 10:47
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        MyInterface myInterface = new MyInterface() {
            @Override
            public void eat() {
                System.out.println("匿名方式的吃");
            }
        };
    }
}
